public class Dog extends Animal implements Run,Swimming{


    public Dog(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat() {
        System.out.println(this.getName()+"吃狗粮");
    }

    @Override
    public void run() {
        System.out.println(this.getName()+"会跑");
    }

    @Override
    public void swimming() {
        System.out.println(this.getName()+"会游泳");
    }
}
